function [Yp] = knnclass(Xtr,Xts,Y,k)
[IDX,~] = knnsearch(Xtr,Xts,'K',k);
Yp = mode(Y(IDX)')';
end